const BASE_URL = 'http://81.71.65.4:3003/'

function Ajax(url,data,callback,method="GET",header="application/json",dataType="json"){
  wx.request({
    url: BASE_URL+url,
    data:data,
    method:method,
    header:header,
    dataType:dataType,
    success:({data})=>{
      if(data.code==666){
        callback(data)
      }
    }
  })
}

export default Ajax